import request from '@/utils/request'

// 查询退款明细列表
export function listSfRefundDetail(query) {
  return request({
    url: '/life/sfRefundDetail/list',
    method: 'get',
    params: query
  })
}

// 查询退款明细详细
export function getSfRefundDetail(id) {
  return request({
    url: '/life/sfRefundDetail/' + id,
    method: 'get'
  })
}

// 新增退款明细
export function addSfRefundDetail(data) {
  return request({
    url: '/life/sfRefundDetail',
    method: 'post',
    data: data
  })
}

// 修改退款明细
export function updateSfRefundDetail(data) {
  return request({
    url: '/life/sfRefundDetail',
    method: 'put',
    data: data
  })
}

// 删除退款明细
export function delSfRefundDetail(id) {
  return request({
    url: '/life/sfRefundDetail/' + id,
    method: 'delete'
  })
}
